package com.ruoyi.com.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.domain.OperateBasicForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.com.mapper.ComBusinessClassifyContentMapper;
import com.ruoyi.com.domain.ComBusinessClassifyContent;
import com.ruoyi.com.service.IComBusinessClassifyContentService;

/**
 * 业务管理-分类内容关联Service业务层处理
 *
 * @author sunye
 * @date 2024-12-07
 */
@Service
public class ComBusinessClassifyContentServiceImpl extends ServiceImpl<ComBusinessClassifyContentMapper, ComBusinessClassifyContent> implements IComBusinessClassifyContentService
{
    @Autowired
    private ComBusinessClassifyContentMapper comBusinessClassifyContentMapper;

    /**
     * 查询业务管理-分类内容关联
     *
     * @param id 业务管理-分类内容关联主键
     * @return 业务管理-分类内容关联
     */
    @Override
    public ComBusinessClassifyContent selectComBusinessClassifyContentById(Long id)
    {
        return comBusinessClassifyContentMapper.selectComBusinessClassifyContentById(id);
    }

    /**
     * 查询业务管理-分类内容关联列表
     *
     * @param comBusinessClassifyContent 业务管理-分类内容关联
     * @return 业务管理-分类内容关联
     */
    @Override
    public List<ComBusinessClassifyContent> selectComBusinessClassifyContentList(ComBusinessClassifyContent comBusinessClassifyContent)
    {
        return comBusinessClassifyContentMapper.selectComBusinessClassifyContentList(comBusinessClassifyContent);
    }

    /**
     * 新增业务管理-分类内容关联
     *
     * @param comBusinessClassifyContent 业务管理-分类内容关联
     * @return 结果
     */
    @Override
    public int insertComBusinessClassifyContent(ComBusinessClassifyContent comBusinessClassifyContent)
    {
        return comBusinessClassifyContentMapper.insertComBusinessClassifyContent(comBusinessClassifyContent);
    }

    /**
     * 修改业务管理-分类内容关联
     *
     * @param comBusinessClassifyContent 业务管理-分类内容关联
     * @return 结果
     */
    @Override
    public int updateComBusinessClassifyContent(ComBusinessClassifyContent comBusinessClassifyContent)
    {
        return comBusinessClassifyContentMapper.updateComBusinessClassifyContent(comBusinessClassifyContent);
    }

    /**
     * 批量删除业务管理-分类内容关联
     *
     * @param ids 需要删除的业务管理-分类内容关联主键
     * @return 结果
     */
    @Override
    public int deleteComBusinessClassifyContentByIds(Long[] ids)
    {
        return comBusinessClassifyContentMapper.deleteComBusinessClassifyContentByIds(ids);
    }

    /**
     * 删除业务管理-分类内容关联信息
     *
     * @param id 业务管理-分类内容关联主键
     * @return 结果
     */
    @Override
    public int deleteComBusinessClassifyContentById(Long id)
    {
        return comBusinessClassifyContentMapper.deleteComBusinessClassifyContentById(id);
    }

    /**
     * 置为有效/无效业务管理-分类内容关联
     *
     */
    @Override
    public int effectiveStatus(OperateBasicForm operateBasicForm)
    {
        return comBusinessClassifyContentMapper.effectiveStatus(operateBasicForm);
    }
}
